package com.tyut.service;

import com.tyut.pojo.*;

import java.util.List;

public interface EditorService {
	PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state, String checkState);

	List<Category> findAll();

	User findByName(String username);

	void updateAvatar(String avatarUrl);

	void update(User user);

	void updatePwd(String newPwd);

	PageBean<Editor> editorlist(Integer pageNum, Integer pageSize, String username);

	void updateState(Integer id, String state);

	void delete(Integer id);
}
